<?php
/**
 * Created by PhpStorm.
 * User: zhangjijian
 * Date: 2017/6/22
 * Time: 下午5:28
 */

namespace App\Http\Controllers;

use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class ShowProfile extends Controller
{
    function __construct()
    {
//        $this->middleware('auth');
    }

    public function __invoke(Request $request ,$id)
    {
        $data = $request->session()->all();
        var_dump($data);
        echo $value = $request->session()->get('key');

//        return "show profile";
    }
}
